import java.awt.Point;
import java.util.Collection;

public class Main {
	public static void main(String[] args) {
		MinesweeperBoard board;
		// Two ways to create boards.  Create a random board...
		board = new MinesweeperBoard(8, 8, 10);
		// ...or create a specific board.
/*		board = new MinesweeperBoard(new int[][]{{0, 0, 1, 0, 0},
		                                         {0, 1, 0, 0, 0},
		                                         {1, 0, 0, 0, 1}});*/
/*		
		board = new MinesweeperBoard(new int[][]{{0, 1, 0, 0, 0, 0, 0, 0},
												 {0, 0, 0, 0, 0, 0, 0, 0},
												 {0, 0, 1, 0, 0, 0, 0, 0},
												 {0, 0, 0, 0, 1, 1, 0, 0},
												 {0, 0, 0, 0, 0, 1, 0, 0},
												 {0, 0, 0, 0, 0, 0, 1, 0},
												 {0, 0, 0, 0, 1, 0, 0, 0},
												 {0, 1, 1, 1, 0, 0, 0, 0}});
*/
		Collection<Point> solution = MinesweeperPlayer2.solve(board);
		System.out.println("Solution found, Size is " +solution.size());
		System.out.println(board);
		System.out.println(solution);
	}
}
